package com.example.sparkmanager.repository;


import com.example.sparkmanager.model.JobEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JobRepository extends JpaRepository<JobEntity, String>, JpaSpecificationExecutor<JobEntity> {
    List<JobEntity> findAllByModelId(String paramString);

    JobEntity findFirstByModelIdOrderByCreateTimeDesc(String paramString);
}

